<!doctype html>
<html>
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title> new document </title>
      <meta name="generator" content="editplus" />
      <meta name="author" content="" />
      <meta name="keywords" content="" />
      <meta name="description" content="" />
      <script src="String.ex.js" ></script>
</head>

<body>

  
    <dl>
        <dt>trim</dt>
        <dd><span onclick='alert("   hi,ttt ".trim()+"dddddd");'>trim</span></dd>

    </dl>   


    <dl>
        <dt>length</dt>
        <dd><span onclick="alert('123哈'.size());">test</span></dd>

    </dl>



    <dl>
        <dt>test</dt>
        <dd><span onclick="">test</span></dd>

    </dl>



    <script>
        var ary = ["foo1","foo2","foo3"];
 
for (var i = 0, len = ary.length; i < len; i++) {

  setTimeout(function(i){
    alert(ary[i]);
  },0);
}



    </script>
</body>
</html>
